# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :get_assert.py
# @Time      :2025/2/20 11:23:16
# @Author    :flower
from util.get_log import logger


class GetAssert:

    @staticmethod
    def assert_is_equal(actual, expect):
        logger.info(f'============================= 用例开始执行断言验证 =============================')
        logger.info(f'实际结果:{actual}')
        logger.info(f'期望结果:{expect}')
        if int(actual) == int(expect) or actual == expect:
            logger.info(f'【实际结果:{actual}】【期望结果:{expect}】断言成功')
        else:
            logger.debug(f'【实际结果:{actual}】【期望结果:{expect}】断言失败')
            raise AssertionError
        logger.info(f'============================= 用例结束执行断言验证 =============================')

